<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="ase.assignment.sts.utils.CommonUtil"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
	String username = CommonUtil.getString(request
			.getParameter("username"));
	String errorMessage = request.getParameter("error");

	if (errorMessage != null) {
		out.print("<h>" + errorMessage + "</h>");
	}
	
	String t = (String)session.getAttribute("TEST");
%>

<form action="LoginServlet"><input type="text" name="username"
	value="<%=username %>" /> <input type="password" name="password"
	value="" /> <input type="submit" name="submit" value="login" /></form>

<%=t%>
</body>
</html>
